package com.sita.tboard.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

import com.sita.bike.R;
import com.sita.friend.ui.activity.MainActivity;
import com.sita.tboard.ActivityBase;
import com.sita.tingterest.activity.TinterestActivity;


/**
 * Created by manhongyun on 15/11/26.
 */
public class HomeActivity extends ActivityBase {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tboard_homescreen);

        ImageButton imgBtnRoadTrust = (ImageButton) findViewById(R.id.home_roadtrust_image_button);
        imgBtnRoadTrust.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i = new Intent(HomeActivity.this, MainActivity.class);
                startActivity(i);
            }
        });

        ImageButton imgBtnTingterest = (ImageButton) findViewById(R.id.home_tinterest_image_button);
        imgBtnTingterest.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i = new Intent(HomeActivity.this, TinterestActivity.class);
                startActivity(i);
            }
        });

        ImageButton imgBtnTeam = (ImageButton) findViewById(R.id.home_nav_image_button);
        imgBtnTeam.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
            }
        });
    }


}
